import { PartialType } from '@nestjs/mapped-types'
import { IsNotEmpty } from 'class-validator'
import { Comment } from 'src/users/entities/comment.entity'

export class CreateCommentDto extends PartialType(Comment) {
  @IsNotEmpty({ message: '评论内容不能为空' })
  content: string
}
